﻿<%@ Page Language="C#" MasterPageFile="~/TownshipEnterprise/Town.master" AutoEventWireup="true" CodeFile="VehicleAdd.aspx.cs" Inherits="TownshipEnterprise_VehicleAdd" Title="无标题页" StylesheetTheme="Content" %>


<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table cellspacing="0" cellpadding="0" class="intable">
        <caption>
            <asp:Label ID="ActionTitle" runat="server"></asp:Label></caption>
        <tr>
            <td style="width: 551px">
                所属地区：
            </td>
            <td colspan="3">
 
                        <asp:DropDownList ID="DepartmentList" runat="server" AutoPostBack="True" DataTextField="ShortName"
                            DataValueField="DepartmentID" Width="25%" 
                            onselectedindexchanged="DepartmentList_SelectedIndexChanged" Height="22px">
                        </asp:DropDownList>
                        <asp:DropDownList ID="UnitList" runat="server" DataTextField="shortname" DataValueField="DepartmentID"
                            Width="57%" AutoPostBack="True" 
                            onselectedindexchanged="UnitList_SelectedIndexChanged" Height="22px">
                        </asp:DropDownList>
                        <%--   <span class="comment">车辆所属单位名称</span>--%>
              
            </td>
        </tr>
        <tr>
            <td style="width: 551px">
                队伍名称：</td>
            <td colspan="3">
               
                        <asp:DropDownList ID="ddlTownBasic" runat="server" DataTextField="Army" DataValueField="ID"
                            Width="82%" 
                            onselectedindexchanged="UnitList_SelectedIndexChanged" Height="22px" >
                        </asp:DropDownList>
              
            </td>
        </tr>
        <tr>
            <td style="width: 551px">
                车辆类别：
            </td>
            <td colspan="3">
                <asp:DropDownList ID="ddlType" runat="server" Width="25%" AutoPostBack="True" 
                    OnSelectedIndexChanged="ddlType_SelectedIndexChanged" Height="22px">
                </asp:DropDownList>
                <asp:DropDownList ID="ddlClass" runat="server" Width="57%" AutoPostBack="True" 
                    Height="22px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td style="width: 551px">
                车辆名称：
            </td>
            <td style="width: 38%">
                <asp:TextBox ID="VehicleName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="VehicleName"
                    ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>
            <td style="width: 14%">
                车牌：
            </td>
            <td>
                <asp:TextBox runat="server" ID="NumberPlate"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="NumberPlate"
                    ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 551px">
                车辆型号：
            </td>
            <td style="width: 38%">
                <asp:TextBox ID="VehicleMode" runat="server"></asp:TextBox>
            </td>
            <td style="width: 14%">
                车辆编号：
            </td>
            <td style="width: 35%">
                <asp:TextBox ID="Number" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 551px">
                载水量：
            </td>
            <td style="width: 38%">
                <asp:TextBox ID="CapacityOfWater" runat="server"></asp:TextBox>
                t<asp:RangeValidator ID="RangeValidator21" runat="server" ControlToValidate="CapacityOfWater"
                    ErrorMessage="*" MinimumValue="1" Type="Double" MaximumValue="99999"></asp:RangeValidator>
            </td>
            <td style="width: 14%">
                泡沫量：
            </td>
            <td>
                <asp:TextBox ID="CapacityOfFoam" runat="server"></asp:TextBox>
                t<asp:RangeValidator ID="RangeValidator22" runat="server" ControlToValidate="CapacityOfFoam"
                    ErrorMessage="*" MinimumValue="0.01" Type="Double" MaximumValue="99999"></asp:RangeValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 551px">
                干粉量：
            </td>
            <td style="width: 38%">
                <asp:TextBox ID="CapacityOfPowder" runat="server"></asp:TextBox>
                t<asp:RangeValidator ID="RangeValidator19" runat="server" ControlToValidate="CapacityOfPowder"
                    ErrorMessage="*" MinimumValue="1" Type="Double" MaximumValue="99999"></asp:RangeValidator>
            </td>
            <td style="width: 14%">
                总重量：
            </td>
            <td>
                <asp:TextBox ID="TotalWeight" runat="server"></asp:TextBox>
                kg
                <asp:RangeValidator ID="RangeValidator20" runat="server" ControlToValidate="TotalWeight"
                    ErrorMessage="*" MinimumValue="1" Type="Double" MaximumValue="99999"></asp:RangeValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 551px; height: 32px;">
                购入价格：
            </td>
            <td style="height: 32px; width: 38%">
                <asp:TextBox ID="Price" runat="server"></asp:TextBox>
                元<asp:RangeValidator ID="RangeValidator18" runat="server" ControlToValidate="Price"
                    ErrorMessage="*" MinimumValue="1" Type="Double" MaximumValue="999999999"></asp:RangeValidator>
            </td>
            <td style="height: 32px; width: 14%">
                购买日期：
            </td>
            <td style="height: 32px">
                <asp:TextBox ID="DatePurchase" runat="server"></asp:TextBox>
                <ajaxToolkit:CalendarExtender ID="CalendarExtender1" runat="server" Animated="False"
                    TargetControlID="DatePurchase">
                </ajaxToolkit:CalendarExtender>
            </td>
        </tr>
        <tr>
            <td style="width: 551px; height: 32px;">
                生产日期：
            </td>
            <td style="height: 32px; width: 38%">
                <asp:TextBox ID="DateProduc" runat="server"></asp:TextBox>
                <ajaxToolkit:CalendarExtender ID="CalendarExtender2" runat="server" Animated="False"
                    TargetControlID="DateProduc">
                </ajaxToolkit:CalendarExtender>
            </td>
            <td style="height: 32px; width: 14%">
                发动机型号：
            </td>
            <td style="height: 32px">
                <asp:TextBox ID="EngineType" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 551px">
                最大功率：
            </td>
            <td style="width: 38%">
                <asp:TextBox ID="MaxPower" runat="server"></asp:TextBox>
                KW
                <asp:RangeValidator ID="RangeValidator17" runat="server" ControlToValidate="MaxPower"
                    ErrorMessage="*" MinimumValue="1" Type="Double" MaximumValue="99999"></asp:RangeValidator>
            </td>
            <td style="width: 14%">
                司乘人员数：
            </td>
            <td>
                <asp:TextBox ID="Passenger" runat="server"></asp:TextBox>
                人
                <asp:RangeValidator ID="RangeValidator7" runat="server" ControlToValidate="Passenger"
                    ErrorMessage="*" MinimumValue="1" Type="Integer" MaximumValue="99999"></asp:RangeValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 551px">
                最高速度：
            </td>
            <td style="width: 38%">
                <asp:TextBox ID="MaxSpeed" runat="server"></asp:TextBox>
                Km/h
                <asp:RangeValidator ID="RangeValidator16" runat="server" ControlToValidate="MaxSpeed"
                    ErrorMessage="*" MinimumValue="1" Type="Double" MaximumValue="99999"></asp:RangeValidator>
            </td>
            <td style="width: 14%">
                最大扭矩：
            </td>
            <td>
                <asp:TextBox ID="MaxTorque" runat="server"></asp:TextBox>
                N.m/rpm
            </td>
        </tr>
        <tr>
            <td style="width: 551px">
                最大出水压力：
            </td>
            <td style="width: 38%">
                <asp:TextBox ID="ConstantPressure" runat="server"></asp:TextBox>
                MPa
                <asp:RangeValidator ID="RangeValidator14" runat="server" ControlToValidate="ConstantPressure"
                    ErrorMessage="*" MinimumValue="1" Type="Double" MaximumValue="99999"></asp:RangeValidator>
            </td>
            <td style="width: 14%">
                底盘型号：
            </td>
            <td>
                <asp:TextBox ID="ChassisType" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 551px">
                工作高度：
            </td>
            <td style="width: 38%">
                <asp:TextBox ID="WorkHeight" runat="server"></asp:TextBox>
                m<asp:RangeValidator ID="RangeValidator23" runat="server" ControlToValidate="WorkHeight"
                    ErrorMessage="*" MinimumValue="1" Type="Double" MaximumValue="99999"></asp:RangeValidator>
                (举高消防车填写)
            </td>
            <td style="width: 14%">
                车高：
            </td>
            <td>
                <asp:TextBox ID="VehicleHeight" runat="server"></asp:TextBox>
                m<asp:RangeValidator ID="RangeValidator24" runat="server" ControlToValidate="VehicleHeight"
                    ErrorMessage="*" MinimumValue="1" Type="Double" MaximumValue="99999"></asp:RangeValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 551px">
                车宽：
            </td>
            <td style="width: 38%">
                <asp:TextBox ID="VehicleWidth" runat="server"></asp:TextBox>
                m<asp:RangeValidator ID="RangeValidator25" runat="server" ControlToValidate="VehicleWidth"
                    ErrorMessage="*" MinimumValue="1" Type="Double" MaximumValue="99999"></asp:RangeValidator>
            </td>
            <td style="width: 14%">
                车长：
            </td>
            <td>
                <asp:TextBox ID="VehicleLength" runat="server"></asp:TextBox>
                m<asp:RangeValidator ID="RangeValidator26" runat="server" ControlToValidate="VehicleLength"
                    ErrorMessage="*" MinimumValue="1" Type="Double" MaximumValue="99999"></asp:RangeValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 551px">
                水泵最大流量：
            </td>
            <td style="width: 38%">
                <asp:TextBox ID="PumpFlux" runat="server"></asp:TextBox>
                L/s<asp:RangeValidator ID="RangeValidator27" runat="server" ControlToValidate="PumpFlux"
                    ErrorMessage="*" MinimumValue="1" Type="Double" MaximumValue="99999"></asp:RangeValidator>
            </td>
            <td style="width: 14%">
                水泵型号：
            </td>
            <td>
                <asp:TextBox ID="PumpType" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 551px">
                电台呼号：
            </td>
            <td style="width: 38%">
                <asp:TextBox ID="RadioNO" runat="server" OnTextChanged="WorkHight6_TextChanged"></asp:TextBox>
            </td>
            <td style="width: 14%">
                最大吸水深度：
            </td>
            <td>
                <asp:TextBox ID="MaxDrinkDepth" runat="server"></asp:TextBox>
                m
            </td>
        </tr>
        <tr>
            <td colspan="2">
                计算机无线网络接入：<asp:CheckBox ID="Wlan" runat="server" Text="是" />
            </td>
            <td style="width: 14%">
                投入执勤时间：
            </td>
            <td>
                <asp:TextBox ID="Life" runat="server"></asp:TextBox>
                年<asp:RangeValidator ID="RangeValidator13" runat="server" ControlToValidate="Life"
                    ErrorMessage="*" MinimumValue="1" Type="Integer" MaximumValue="99999"></asp:RangeValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 551px">
                其他性能参数：
            </td>
            <td colspan="3">
                <asp:TextBox ID="OtherParameters" runat="server" Width="84%"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 551px">
                生产厂家：
            </td>
            <td colspan="3">
                <asp:TextBox ID="Manufacturer" runat="server" Width="84%"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 551px">
                厂家地址：
            </td>
            <td colspan="3">
                <asp:TextBox ID="Address" runat="server" Width="84%"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 551px">
                厂家电话：
            </td>
            <td colspan="3">
                <asp:TextBox ID="Phone" runat="server" Width="84%"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 551px">
                主要用途：
            </td>
            <td colspan="3">
                <asp:TextBox ID="MostUse" runat="server" Width="84%"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 551px">
                使用方法：
            </td>
            <td colspan="3">
                <asp:TextBox ID="UseMethod" runat="server" Width="84%"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 551px">
                注意事项：
            </td>
            <td colspan="3">
                <asp:TextBox ID="AlertInfo" runat="server" Width="84%"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 551px">
                图片：
            </td>
            <td colspan="3">
                <asp:FileUpload ID="Picture" runat="server" Width="84%" />
            </td>
        </tr>
        <%--<tr>
            <td>
                状态：
            </td>
            <td colspan="3">
                <asp:DropDownList ID="rblState" Width="100" runat="server" RepeatDirection="Horizontal">
                </asp:DropDownList>
            </td>
        </tr>--%>
        <tr runat="server" id="trDriver">
            <td style="width: 551px">
                &nbsp;
            </td>
            <td colspan="3">
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="4" style="text-align: center">
                <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" />
                <input id="ButtonCancel" class="button_default" onclick="window.location='VehicleList.aspx';"
                    type="button" value="取消" />
            </td>
        </tr>
        <tr>
            <td colspan="4" style="text-align: left">
                <div class="prompt">
                    <asp:Label ID="Prompt" runat="server" />
                </div>
            </td>
        </tr>
        <tr>
            <td class="title" style="width: 551px">
            </td>
            <td colspan="3">
                
                    &nbsp;</td>
        </tr>
    </table>
</asp:Content>